import math
import sys
import numpy as np
from matplotlib import pyplot as plt


def Line(Start, End) : 

    def _LineFunc(Distance : int) :
        return np.array(Start + Distance * np.linalg.norm(End - Start))

    return _LineFunc



TimeArray = np.arange(0, 10, 1)

Start = np.array((0, 0))
BeginEnd = np.array((10, 10))

def CurrentEnd(Time) : return BeginEnd + np.array((0, 1 * Time))
def CurrentLine(Time) : return Line(Start, CurrentEnd(Time))

NoMoveEndLine = Line(Start, BeginEnd)

def Distance(A, B) : return math.sqrt(math.pow(A[0] - B[0], 2) + math.pow(A[1] - B[1], 2))
Dis = Distance(Start, BeginEnd)

XArray = np.arange(0, Dis, 1)
plt.title('Test Path Trace')
plt.xlabel("X")
plt.ylabel("Y")


YArray = [NoMoveEndLine(X) for X in XArray]


#for Time in TimeArray :
#    CurrentLine(Time)


plt.plot(XArray, YArray, label="NoMoveEndLine")


plt.legend()
plt.show()